<div class="row">
    <% if(goodslist.length > 0){ %>
        <% goodslist.forEach(function(goods){
            if(goods){
        %>
        <div class="col-xs-6">
            <div class="goods-item" data-id="<%=goods._id%>">
                <div class="goods-img"><img src="/goods/<%=factionId %>_<%=goods._id%>.jpg" onError="this.src='/default_goods_img.jpg';"/></div>
                <div class="goods-name"><%=goods.name%></div>
                <div>积分: <strong class="goods-price"><%=goods.price%></strong></div>
            </div>
        </div>
        <% } } ) %>
    <% } %>
</div>